home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / festival / siod.scm < prev    next >
Encoding:
Text File  |  2006-12-20  |  17.6 KB  |  636 lines

  1.  
  2.  
  3.  
  4.  
  5.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6.  ;;; DO NOT EDIT THIS FILE ON PAIN OF MORE PAIN.
  7.  ;;; 
  8.  ;;; The master copy of this file is in /usr/lib/speech_tools/lib/siod/siod.scm
  9.  ;;; and is copied here at build time.
  10.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. ;; SIOD: Scheme In One Defun                                  -*-mode: view-*-
  24. ;;
  25. ;; *                        COPYRIGHT (c) 1989-1992 BY                       *
  26. ;; *        PARADIGM ASSOCIATES INCORPORATED, CAMBRIDGE, MASSACHUSETTS.      *
  27. ;; *        See the source file SLIB.C for more information.                 *
  28. ;;
  29. ;; A fair amount of modifications and tidy up was done by AWB, particularly
  30. ;;   * adding documentation strings to all functions/variable
  31. ;;   * removing some example functions not relevant to Festival (or siod)
  32. ;;   * addition of new functions (require provide etc)
  33.  
  34. ;(puts  ";; Optional Runtime Library for Release 2.8
  35. ;")
  36.  
  37. (define list 
  38.   (lambda n 
  39. "(list A0 A1 ...)
  40. Return list containing A0 A1 ..."
  41.   n))
  42.  
  43. (define (caar x) 
  44. "(caar X)
  45. Return the (car (car X))."
  46.   (car (car x)))
  47. (define (cadr x) 
  48. "(cadr X)
  49. Return the (car (cdr X))."
  50.   (car (cdr x)))
  51. (define (cdar x)
  52. "(cdar X)
  53. Return the (cdr (car X))."
  54.  (cdr (car x)))
  55. (define (cddr x) 
  56. "(cddr X)
  57. Return the (cdr (cdr X))."
  58.  (cdr (cdr x)))
  59.  
  60. (define (caddr x) 
  61. "(caddr X)
  62. Return the (car (cdr (cdr X)))."
  63.   (car (cdr (cdr x))))
  64. (define (cdddr x) 
  65. "(cdddr X)
  66. Return the (cdr (cdr (cdr X)))."
  67.   (cdr (cdr (cdr x))))
  68.  
  69. (define consp pair?)
  70.  
  71. (define (replace before after)
  72. "(replace BEFORE AFTER)
  73. Destructively replace contents of cons cell BEFORE with those of
  74. AFTER."
  75.   (set-car! before (car after))
  76.   (set-cdr! before (cdr after))
  77.   after)
  78.  
  79. (define (prognify forms)
  80.   (if (null? (cdr forms))
  81.       (car forms)
  82.     (cons 'begin forms)))
  83.  
  84. (define (defmac-macro form)
  85. "(defmac-macro MACRONAME FORM)
  86. Define a macro.  Macro expand FORM in-line."
  87.   (let ((sname (car (cadr form)))
  88.     (argl (cdr (cadr form)))
  89.     (fname nil)
  90.     (body (prognify (cddr form))))
  91.     (set! fname (symbolconc sname '-macro))
  92.     (list 'begin
  93.       (list 'define (cons fname argl)
  94.         (list 'replace (car argl) body))
  95.       (list 'define sname (list 'quote fname)))))
  96.  
  97. (define defmac 'defmac-macro)
  98.  
  99. (defmac (push form)
  100.   (list 'set! (caddr form)
  101.     (list 'cons (cadr form) (caddr form))))
  102.  
  103. (defmac (pop form)
  104.   (list 'let (list (list 'tmp (cadr form)))
  105.     (list 'set! (cadr form) '(cdr tmp))
  106.     '(car tmp)))
  107.  
  108. ;;;  Have to set var-docstrings to nil first as defvar requires it to be set
  109. (set! var-docstrings nil)
  110. (define (add-doc-var varname docstring)
  111. "(add-doc-var VARNAME DOCSTRING)
  112.   Add document string DOCSTRING to VARNAME.  If DOCSTRING is nil
  113.   this has no effect.  If VARNAME already has a document string replace
  114.   it with DOCSTRING."
  115.  (if (null? docstring)
  116.      t
  117.      (let ((lpair (assq varname var-docstrings)))
  118.        (if lpair
  119.        (set-cdr! lpair docstring)
  120.        (set! var-docstrings (cons (cons varname docstring) 
  121.                       var-docstrings))))))
  122.  
  123. (set! boundp symbol-bound?)
  124.  
  125. (defmac (defvar form)
  126.   (begin  ;; always add the documentation string
  127.     (add-doc-var (cadr form) (car (cdddr form)))
  128.     (list 'or
  129.     (list 'symbol-bound? (list 'quote (cadr form)))
  130.     (list 'define (cadr form) (caddr form)))))
  131.  
  132. (defvar var-docstrings nil
  133.   "var-docstrings
  134.   An assoc-list of variable names and their documentation strings.")
  135.  
  136. (defmac (defun form)
  137.   (cons 'define
  138.     (cons (cons (cadr form) (caddr form))
  139.           (cdddr form))))
  140.  
  141. (defmac (setq form)
  142.   (let ((l (cdr form))
  143.     (result nil))
  144.     (define (loop)
  145.       (if l
  146.       (begin (push (list 'set! (car l) (cadr l)) result)
  147.          (set! l (cddr l))
  148.          (loop))))
  149.     (loop)
  150.     (prognify (reverse result))))
  151.   
  152. (define progn begin)
  153.  
  154. (defun atom (x)
  155. "(atom X)
  156. True if X is not a cons cells, nil otherwise."
  157.   (not (consp x)))
  158.  
  159. (define eq eq?)
  160.  
  161. (defmac (cond form)
  162.   (cond-convert (cdr form)))
  163.  
  164. (define null null?)
  165.  
  166. (defun cond-convert (l)
  167.   (if (null l)
  168.       ()
  169.     (if (null (cdar l))
  170.     (if (null (cdr l))
  171.         (caar l)
  172.       (let ((rest (cond-convert (cdr l))))
  173.         (if (and (consp rest) (eq (car rest) 'or))
  174.         (cons 'or (cons (caar l) (cdr rest)))
  175.           (list 'or (caar l) rest))))
  176.       (if (or (eq (caar l) 't)
  177.           (and (consp (caar l)) (eq (car (caar l)) 'quote)))
  178.       (prognify (cdar l))
  179.     (list 'if
  180.           (caar l)
  181.           (prognify (cdar l))
  182.           (cond-convert (cdr l)))))))
  183.  
  184. (defmac (+internal-comma form)
  185.   (error 'comma-not-inside-backquote))
  186.  
  187. (define +internal-comma-atsign +internal-comma)
  188. (define +internal-comma-dot +internal-comma)
  189.  
  190. (defmac (+internal-backquote form)
  191.   (backquotify (cdr form)))
  192.  
  193. (defun backquotify (x)
  194. "(backquote FORM)
  195. Backquote function for expanding forms in macros."
  196.   (let (a d aa ad dqp)
  197.     (cond ((atom x) (list 'quote x))
  198.       ((eq (car x) '+internal-comma) (cdr x))
  199.       ((or (atom (car x))
  200.            (not (or (eq (caar x) '+internal-comma-atsign)
  201.             (eq (caar x) '+internal-comma-dot))))
  202.        (setq a (backquotify (car x)) d (backquotify (cdr x))
  203.          ad (atom d) aa (atom a)
  204.          dqp (and (not ad) (eq (car d) 'quote)))
  205.        (cond ((and dqp (not (atom a)) (eq (car a) 'quote))
  206.           (list 'quote (cons (cadr a) (cadr d))))
  207.          ((and dqp (null (cadr d)))
  208.           (list 'list a))
  209.          ((and (not ad) (eq (car d) 'list))
  210.           (cons 'list (cons a (cdr d))))
  211.          (t (list 'cons a d))))
  212.       ((eq (caar x) '+internal-comma-atsign)
  213.        (list 'append (cdar x) (backquotify (cdr x))))
  214.       ((eq (caar x) '+internal-comma-dot)
  215.        (list 'nconc (cdar x)(backquotify (cdr x)))))))
  216.  
  217.  
  218. (defun append n
  219. "(append L0 L1 ...)
  220. Append each list to the first list in turn."
  221.   (appendl n))
  222.  
  223. (defun appendl (l)
  224.   (cond ((null l) nil)
  225.     ((null (cdr l)) (car l))
  226.     ((null (cddr l))
  227.      (append2 (car l) (cadr l)))
  228.     ('else
  229.      (append2 (car l) (appendl (cdr l))))))
  230.  
  231. (defun append2 (a b)
  232.   (if (null a)
  233.       b
  234.     (cons (car a) (append2 (cdr a) b))))
  235.  
  236. (defun rplacd (a b)
  237. "(replacd A B)
  238. Destructively replace the cdr of A with B."
  239.   (set-cdr! a b)
  240.   a)
  241.  
  242. (defun nconc (a b)
  243. "(nconc A B)
  244. Destructively append B to A, if A is nil return B."
  245.   (if (null a)
  246.       b
  247.     (rplacd (last a) b)))
  248.  
  249. (defun last (a)
  250. "(last A)
  251. Last (cdr) element in list A."
  252.   (cond ((null a) (error'null-arg-to-last))
  253.     ((null (cdr a)) a)
  254.     ((last (cdr a)))))
  255.  
  256. (define (remove i l)
  257. "(remove ITEM LIST)
  258. (Non-destructively) remove ITEM from LIST."
  259.   (cond    
  260.    ((null l) nil)
  261.    ((eq? i (car l))
  262.     (cdr l))
  263.    (t
  264.     (cons (car l) (remove i (cdr l))))))
  265.  
  266. (define (remove-duplicates l)
  267. "(remove-duplicates LIST)
  268. Remove duplicate items in LIST."
  269.  (cond
  270.   ((null l) l)
  271.   ((member_string (car l) (cdr l))
  272.    (remove-duplicates (cdr l)))
  273.   (t
  274.    (cons (car l) (remove-duplicates (cdr l))))))
  275.  
  276. (define (nth n l)
  277.   "(nth N LIST)
  278. Returns nth car of LIST, 0 is car."
  279.   (if (< n 1)
  280.       (car l)
  281.       (nth (- n 1) (cdr l))))
  282.  
  283. (define (position thing l)
  284.   "(position thing l)
  285. What position is thing in l, -1 if it doesn't exist."
  286.   (let ((p 0) (m l))
  287.     (while (and m (not (equal? thing (car m))))
  288.       (set! p (+ 1 p))
  289.       (set! m (cdr m)))
  290.     (if m p nil)))
  291.  
  292. (define (nth_cdr n l)
  293.   "(nth_cdr N LIST)
  294. Returns nth cdr of LIST, 0 is LIST."
  295.   (if (< n 1)
  296.       l
  297.       (nth_cdr (- n 1) (cdr l))))
  298.  
  299. (define (<= a b)
  300. "(<= NUM1 NUM2)
  301.   Returns t if NUM1 is less than or equal to NUM2, nil otherwise.  An error is
  302.   given is either argument is not a number."
  303.   (or (< a b)
  304.       (equal? a b)))
  305.  
  306. (define (>= a b)
  307. "(>= NUM1 NUM2)
  308.   Returns t if NUM1 is greater than or equal to NUM2, nil otherwise.  
  309.   An error is given is either argument is not a number."
  310.   (or (> a b)
  311.       (equal? a b)))
  312.  
  313. (define (approx-equal? a b diff)
  314.   "(approx-equal? a b diff)
  315. True is the difference between a b is less than diff.  This allows equality
  316. between floats which may have been written out and read in and hence have
  317. slightly different precision."
  318.   (< (if (> a b) (- a b) (- b a)) diff))
  319.  
  320. (define (assoc_string key alist)
  321.   "(assoc_string key alist)
  322. Look up key in alist using string-equal.  This allow indexing by
  323. string rather than just symbols."
  324.   (cond
  325.    ((null alist) nil)
  326.    ((string-equal key (car (car alist))) (car alist))
  327.    (t (assoc_string key (cdr alist))))
  328. )
  329.  
  330. (defvar *fasdump-hash* t)
  331.  
  332. (defun fasl-open (filename mode)
  333. "(fasl-open FILENAME MODE)
  334. Open fasl FILENAME as MODE. Returns a fasl-table."
  335.   (list (fopen filename mode)
  336.     (if (or (equal? mode "rb") *fasdump-hash*)
  337.         (cons-array 100))
  338.     ;; If this is set NIL, then already hashed symbols will be
  339.     ;; optimized, and additional ones will not.
  340.     0))
  341.  
  342. (defun fasl-close (table)
  343. "(fasl-close TABLE)
  344. Close fasl table."
  345.   (fclose (car table)))
  346.  
  347. (defun fasload args
  348. "(fasload FILENAME ARGS)
  349. Fast load FILENAME."
  350.   (let ((filename (car args))
  351.     (head (and (cadr args) (cons nil nil))))
  352.     (let ((table (fasl-open filename "rb"))
  353.       (exp)
  354.       (tail head))
  355.       (while (not (eq table (setq exp (fast-read table))))
  356.     (cond (head
  357.            (setq exp (cons exp nil))
  358.            (set-cdr! tail exp)
  359.            (setq tail exp))
  360.           ('else
  361.            (eval exp))))
  362.       (fasl-close table)
  363.       (and head (cdr head)))))
  364.  
  365. (defun fasdump (filename forms)
  366. "(fasdump FILENAME FORMS)
  367. Fast dump FORMS into FILENAME."
  368.   (let ((table (fasl-open filename "wb"))
  369.     (l forms))
  370.     (while l
  371.       (fast-print (car l) table)
  372.       (set! l (cdr l)))
  373.     (fasl-close table)))
  374.  
  375. (defun compile-file (filename)
  376. "(compile-file FILENAME)
  377. Compile lisp forms in FILENAME.scm to FILENAME.bin."
  378.   (let ((forms (load (string-append filename ".scm") t)))
  379.     (puts "Saving forms
  380. ")
  381.     (fasdump (string-append filename ".bin")
  382.          forms)))
  383.  
  384. (defvar *properties* (cons-array 100)
  385.   "*properties*
  386. Array for holding symbol property lists.")
  387.  
  388. (defun get (sym key)
  389. "(get SYM KEY)
  390. Get property named KEY for SYM."
  391.   (cdr (assq key (href *properties* sym))))
  392.  
  393. (defun putprop (sym val key)
  394. "(putprop SYM VAL KEY)
  395. Put property VAL named KEY for SYM."
  396.   (let ((alist (href *properties* sym)))
  397.     (let ((cell (assq key alist)))
  398.       (cond (cell
  399.          (set-cdr! cell val))
  400.         ('else
  401.          (hset *properties* sym (cons (cons key val) alist))
  402.          val)))))
  403.  
  404. ;;(define (mapcar1 f l1)
  405. ;;  (and l1 (cons (f (car l1)) (mapcar1 f (cdr l1)))))
  406.  
  407. ;; An iterative version of the above
  408. (define (mapcar1 f l1)
  409.   (let ((l2 l1) (r nil))
  410.     (while l2
  411.       (set! r (cons (f (car l2)) r))
  412.       (set! l2 (cdr l2)))
  413.     (reverse r)))
  414.  
  415. ;;(define (mapcar2 f l1 l2)
  416. ;;  (and l1 l2 (cons (f (car l1) (car l2)) (mapcar2 f (cdr l1) (cdr l2)))))
  417.  
  418. ;; An iterative version
  419. (define (mapcar2 f l1 l2)
  420.   (let ((a1 l1) (a2 l2) (r nil))
  421.     (while a1
  422.       (set! r (cons (f (car a1) (car a2)) r))
  423.       (set! a1 (cdr a1))
  424.       (set! a2 (cdr a2)))
  425.     (reverse r)))
  426.  
  427. (define (mapcar . args)
  428. "(mapcar FUNCTION ARGS [ARGS2])
  429. Apply FUNCTION to each member of ARGS (and [ARGS2]), returning list of
  430. return values."
  431.   (cond ((null args)
  432.      (error "too few arguments"))
  433.     ((null (cdr args))
  434.      (error "too few arguments"))
  435.     ((null (cdr (cdr args)))
  436.      (mapcar1 (car args) (car (cdr args))))
  437.     ((null (cdr (cdr (cdr args))))
  438.      (mapcar2 (car args) (car (cdr args)) (car (cdr (cdr args)))))
  439.     ('else
  440.      (error "two many arguments"))))
  441.  
  442. ;; will be set automatically on start-up
  443. (defvar libdir '<automatically_set>
  444.   "libdir
  445.   The pathname of the architecture-dependent run-time libary directory.
  446.   Note reseting is almost definitely not what you want to do.   This
  447.   value is automatically set at start up from the value specifed at
  448.   compile-time or the value specifed with --libdir on the command line.
  449.   A number of other variables depend on this value.")
  450.  
  451. (defvar datadir '<automatically_set>
  452.   "datadir
  453.   The pathname of the architecture-independent run-time libary
  454.   directory.  Note reseting is almost definitely not what you want to
  455.   do.   This value is automatically set at start up from the value
  456.   specifed at compile-time or the value specifed with --datadir on the
  457.   command line.  A number of other variables depend on this value.")
  458.  
  459. (defvar load-path (list datadir)
  460.   "load-path
  461.   A list of directories containing .scm files.  Used for various functions
  462.   such as load_library and require.  Follows the same use as EMACS.  By
  463.   default it is set up to the compile-time architecture-independent
  464.   library directory but may be changed by the user at run time, by
  465.   adding a user's own library directory or even replacing all of the
  466.   standard library. [see Site initialization]")
  467.  
  468. ;; will be set automatically on start-up
  469. (defvar *ostype* 'unknown
  470.   "*ostype*
  471.   Contains the name of the operating system type that Festival is running
  472.   on, e.g. SunOS5, FreeBSD, linux etc.  The value is taken from the Makefile
  473.   variable OSTYPE at compile time.")
  474.  
  475. (define (library_expand_filename fname)
  476. "(library_expand_filename FILENAME)
  477.   Search for filename by appending FILENAME to each member of load-path.
  478.   Full expanded pathname is returned.  If not found in load-path FILENAME
  479.   is returned."
  480.   (let ((p load-path)
  481.     (found nil))
  482.     (while (and p (null? found))
  483.       (let ((pot-file (path-append (car p) fname)))
  484.     (if (probe_file pot-file)
  485.         (setq found pot-file))
  486.     (setq p (cdr p))))
  487.     (if (null? found)
  488.     fname
  489.       found)))
  490.  
  491. (define (load_library fname)
  492. "(load_library FILENAME)
  493.   Load file from library, appends FILENAME to each path in load-path
  494.   until a valid file is found. If none found loads name itself"
  495.   (load (library_expand_filename fname)))
  496.  
  497. (define (fasload_library fname)
  498. "(fasload_library FILENAME)
  499.   Load binary file from library"
  500.   (fasload (library_expand_filename fname)))
  501.  
  502. (define (member item list)
  503. "(member ITEM LIST)
  504.   Returns subset of LIST whose car is ITEM if it exists, nil otherwise."
  505.   (if (consp list)
  506.       (if (equal? item (car list))
  507.       t
  508.     (member item (cdr list)))
  509.     nil))
  510.  
  511. (define (member_string item list)
  512. "(member_string STRING LIST)
  513.   Returns subset of LIST whose car is STRING if it exists, nil otherwise."
  514.   (if (consp list)
  515.       (if (string-equal item (car list))
  516.       t
  517.     (member_string item (cdr list)))
  518.     nil))
  519.  
  520. (defvar provided nil
  521.   "provided
  522.   List of file names (omitting .scm) that have been provided.  This list
  523.   is checked by the require function to find out if a file needs to be 
  524.   loaded.  If that file is already in this list it is not loaded.  Typically
  525.   a file will have (provide 'MYNAME) at its end so that a call to 
  526.   (require 'MYNAME) will only load MYNAME.scm once.")
  527.  
  528. (define (require fname)
  529. "(require FILENAME)
  530.   Checks if FNAME is already provided (member of variable provided) if not 
  531.   loads it, appending \".scm\" to FILENAME.  Uses load_library to find 
  532.   the file."
  533.  (let ((bname (intern (basename fname))))
  534.   (if (null? (member bname provided))
  535.       (progn 
  536.         ;;; Compiled files aren't faster, so we don't do this
  537.     ; (fasload_library (string-append fname ".bin"))
  538.        (load_library (string-append fname ".scm"))
  539.     't)
  540.     nil)))
  541.  
  542. (define (request fname)
  543. "(request FILENAME)
  544.   Checks if FNAME is already provided (member of variable provided) if not 
  545.   tries to loads it, appending \".scm\" to FILENAME.  Uses load_library 
  546.   to find the file. Unlike require, fname isn't found no error occurs"
  547.  (unwind-protect (require fname)))
  548.  
  549. (define (provide fname)
  550. "(provide FILENAME)
  551.   Adds FNAME to the variable provided (if not already there).  This means
  552.   that future calls to (require FILENAME) will not cause FILENAME to
  553.   be re-loaded."
  554.   (if (null? (member fname provided))
  555.       (set! provided (cons fname provided))))
  556.  
  557. (define (apply_hooks hooks obj)
  558. "(apply_hooks HOOK OBJ)
  559.   Apply HOOK(s) to OBJ.  HOOK is a function or list of functions that
  560.   take one argument."
  561. (cond
  562.  ((null? hooks) obj)
  563.  ((consp hooks) 
  564.   (apply_hooks (cdr hooks) ((car hooks) obj)))
  565.  (t (hooks obj))))
  566.  
  567. (define (apply func args)
  568. "(apply FUNC ARGS)
  569. Call FUNC with ARGS as arguments."
  570.   (eval
  571.    (cons func
  572.      (mapcar (lambda (a) (list 'quote a)) args))))
  573.  
  574. (defmac (autoload form)
  575. "(autoload FUNCTION FILENAME DOCSTRING)
  576. Define FUNCTION that when called automatically loads FILENAME
  577. and calls FUNCTION (assumed to be defined in FILENAME)."
  578.   (list 'define
  579.     (cadr form)
  580.     (list 
  581.      'lambda
  582.      'n
  583.      (list 'let (list (list 'me  (cadr form)))
  584.            (list 'require (car (cdr (cdr form))))
  585.            (list 'if (list 'eq 'me (cadr form))
  586.              (list 'error
  587.                (list 'string-append 
  588.                  "autoload: \""
  589.                  (car (cdr (cdr form)))
  590.                  ".scm\" does not define "
  591.                  (list 'quote (cadr form)))))
  592.           
  593.            (list 'apply (cadr form) 'n)))))
  594.  
  595. (define (:backtrace frame)
  596. "(:backtrace [FRAME])
  597. This function called *immediately* after an error will display a backtrace
  598. of the functions evaluated before the error.  With no arguments it
  599. lists all stack frames, with the (possibly shortened) forms that were
  600. evaluated at that level.  With a numeric argument it displays
  601. the form at that level in full.  This function only works at
  602. top level in the read-eval-print loop (command interpreter).  Note
  603. that any valid command will leave the backtrace stack empty. Also
  604. note that backtrace itself does not reset the backtrace, unless you
  605. make an error in calling it."
  606.  
  607. "The function is interpreted specially by the read-eval-interpreter
  608. and hence has no body, its actual body is defined in 
  609. src/arch/siod-3.0/slib.cc."
  610. )
  611.  
  612. (defvar hush_startup nil
  613.   "hush_startup
  614.   If set to non-nil, the copyright banner is not displayed at start up.")
  615.  
  616. (defvar editline_histsize 256
  617.   "editline_histsize
  618.   The number of lines to be saved in the users history file when a 
  619.   Festival session ends.  The histfile is \".festival_history\" in the
  620.   users home directory.  Note this value is only checked when the 
  621.   command interpreter is started, hence this should be set in a user's
  622.   \".festivalrc\" or system init file.  Reseting it at the command
  623.   interpreter will have no effect.")
  624.  
  625. (defvar editline_no_echo (getenv "EMACS")
  626.   "editline_no_echo
  627.   When running under Emacs as an inferior process, we don't want to 
  628.   echo the content of the line, only the prompt.")
  629.  
  630. (defvar ! nil
  631.   "!
  632.   In interactive mode, this variable's value is the return value of the
  633.   previously evaluated expression.")
  634.  
  635. (provide 'siod)
  636.